package com.ruoyi.service;

import com.ruoyi.common.core.page.TableDataInfo;
import com.ruoyi.entity.po.TChatRoomPopularity;
import com.ruoyi.entity.po.TPlayerChatRoom;
import com.ruoyi.entity.vo.ChatRoomPopularityVo;

import javax.validation.constraints.NotNull;
import java.util.List;

/**
 * @author chenhainan
 * @since 2024-12-09 20:36
 */
public interface IPlayerChatRoomService {

    int deleteByPrimaryKey(Integer id);

    int deleteByPrimaryKeys(Integer[] ids);

    int insert(TPlayerChatRoom record);

    int insertSelective(TPlayerChatRoom record);

    TPlayerChatRoom selectByPrimaryKey(Integer id);

    int updateByPrimaryKeySelective(TPlayerChatRoom record);

    int updateByPrimaryKey(TPlayerChatRoom record);

    List<TPlayerChatRoom> selectChatRommList(TPlayerChatRoom playerChatRoom);

    TPlayerChatRoom selectByPlayerName(String playerName);

    void updateRoomNameByPlayerName(String playerName, String roomName);

    TPlayerChatRoom selectByPlayerId(@NotNull(message = "选手id不能为null") Integer playerId);

    List<ChatRoomPopularityVo> chatRoomPopularity(Integer playerId);

}
